package org.ushio.nchu_22201404.service;

import org.ushio.nchu_22201404.dao.ComplaintRecordDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.ushio.common_module.entity.ComplaintRecord;
import org.ushio.nchu_22201404.service.impl.ComplaintRecordServiceImpl;

import java.util.List;

@Service
public class ComplaintRecordService implements ComplaintRecordServiceImpl {
    @Autowired
    private ComplaintRecordDao complaintRecordDao;

    @Override
    public void complaintInsert(ComplaintRecord complaintRecord) {
        complaintRecordDao.insertComplaintRecord(complaintRecord);
    }

    @Override
    public void complaintSetIssueResolved(ComplaintRecord complaintRecord) {
        complaintRecordDao.complaintSetIssueResolved(complaintRecord);
    }

    @Override
    public ComplaintRecord complaintGetIssueResolved(String phoneNumber) {
        return complaintRecordDao.complaintGetIssueResolved(phoneNumber);
    }

    @Override
    public void complaintSetIsSigned(ComplaintRecord complaintRecord) {
        complaintRecordDao.complaintSetIsSigned(complaintRecord);
    }

    @Override
    public ComplaintRecord complaintGetIsSigned(String phoneNumber) {
        return complaintRecordDao.complaintGetIsSigned(phoneNumber);
    }

    @Override
    public List<ComplaintRecord> complaintSelectToCustomerService() {
        return complaintRecordDao.selectComplaintRecordToCustomerService();
    }

    @Override
    public List<ComplaintRecord> complaintSelectToAdmin() {
        return complaintRecordDao.selectComplaintRecordToAdmin();
    }
}
